import { gohost } from "libs/api/app"

export const ACTION_NAME = "ACTION_NAME"

//分页查询数据交换
export function fetchList(query) {
  return async (dispatch) => {
    let {data} = await gohost(query)
    dispatch({
      type: ACTION_NAME,
      data
    })
  }
}
